package com.zengdw.pluginB;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.zengdw.easytext.api.Analyzer;

/**
 * @Author: zengd
 * @Date: 2020/7/24 9:43
 * @Version: 1.0
 */
public class PluginB implements Analyzer {
    @Override
    public String getName() {
        return "pluginB";
    }

    @Override
    public double analyze() {
        ObjectMapper mapper = new ObjectMapper();
        try {
            String s = mapper.writeValueAsString("hahha");
            System.out.println(s);
        } catch (JsonProcessingException e) {
            e.printStackTrace();
        }
        return 2;
    }
}
